﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using easyccms.BusinessLayer.Entities;

namespace easyccms.WebUI.Areas.Administrator.Models
{
    /// <summary>
    /// Article create model.
    /// </summary>
    public class ArticleCreateModel
    {
        /// <summary>
        /// Gets or sets the article id.
        /// </summary>
        /// <value>
        /// The article id.
        /// </value>
        public int ArticleId { get; set; }

        /// <summary>
        /// Gets or sets the title.
        /// </summary>
        /// <value>
        /// The title.
        /// </value>
        [Required]
        public virtual string Title { get; set; }

        /// <summary>
        /// Gets or sets the menu item id.
        /// </summary>
        /// <value>
        /// The menu item id.
        /// </value>
        [Required]
        public virtual int MenuItemId { get; set; }

        /// <summary>
        /// Gets or sets the text.
        /// </summary>
        /// <value>
        /// The text.
        /// </value>
        [Required]
        public string Text { get; set; }

        /// <summary>
        /// Gets or sets the collection of menus.
        /// </summary>
        /// <value>
        /// The menus.
        /// </value>
        public List<SelectListItem> MenusItems { get; set; }
    }
}